const soonsDao = require('../dao/soonsDao');
// 增
module.exports.insert = async function (soons) {
    return await soonsDao.insert(soons);
}
//查询所有
module.exports.find = async function (page,searchParams) {
    return await soonsDao.find(page,searchParams);
}
// id查询
module.exports.findById = async function (id) {
    return await soonsDao.findById(id);
}
module.exports.delete = async function (id) {
    return await soonsDao.delete(id);
}
// module.exports.update = async function (hotShow) {
//     return await hotShowDao.update(hotShow);
// }
// module.exports.findByUsername = async function(name){
//     return await hotShowDao.findByUsername(name);
// }